﻿@model NextAction.WebUI.Models.GtdTaskEditViewModel

@{
    Layout = null;
    ViewBag.Title = "Edit Task";
}

<div class="post" id="respond">
    <div class="post_body">

        @using (Html.BeginForm("Edit", "Task"))
        {
    
            @Html.ValidationSummary()
            @Html.Hidden("GtdTask.TaskID", Model.GtdTask.TaskID)      
            @Html.Hidden("GtdTask.UserID", Model.GtdTask.UserID) 
            @Html.Hidden("GtdTask.TaskType", Model.GtdTask.TaskType) 
            @Html.Hidden("GtdTask.ScheduleDate", Model.GtdTask.ScheduleDate) 

      		<p>
				<label>Name</label>
                @Html.EditorFor(x => x.GtdTask.Name)
			</p>
            
            <p>
                <label>Project</label>
                @Html.DropDownListFor(x => x.GtdTask.ProjectID, new SelectList(
                         Model.GtdProjects,
                         "ProjectID",
                         "Name",
                         Model.GtdTask.ProjectID))
            </p>
            
            <p>
                <label>Description</label>
                @Html.EditorFor(x => x.GtdTask.Description)
            </p>
            
            <p>
                <label>Priority</label>
                @Html.DropDownListFor(x => x.GtdTask.PriorityID, new SelectList(
                         Model.Priorities,
                         "PriorityID",
                         "Name",
                         Model.GtdTask.PriorityID))
            </p>
            
        }

    </div>
    <div class="post_bottom"></div>
</div>

